var express = require('express');
var router = express.Router();
const UserService = require("../service/user-server.js");
/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});
/*登录：post请求，路由仅仅只处理路由的业务，真正的登录业务在userservice里进行*/
router.post('/login', UserService.login);
/*注册：post请求，路由仅仅只处理路由的业务，真正的登录业务在userservice里进行*/
router.post('/register', UserService.register);

module.exports = router;
